package com.ruoyi.business.mapper;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.business.domain.ResearchPlan;
import org.apache.ibatis.annotations.Param;

/**
 * 调研计划Mapper接口
 * 
 * @author Eric
 * @date 2024-03-20
 */
@Mapper
public interface ResearchPlanMapper extends BaseMapper<ResearchPlan> {

    List<Map<String, Object>> selectByUserId(@Param("userId") Long userId);
    List<Map<String, Object>> selectValidityPeriodByUserId(@Param("userId") Long userId);

    /**
     * 获取已结束的计划
     * @return
     */
    List<ResearchPlan> selectEndPlan();

    List<Map<String, Object>> selectValidityPeriodNotTaskByUserId(@Param("userId") Long userId);

    List<Map<String, Object>> selectNotTaskPlanByUserId(@Param("userId") Long userId);
}
